package com.guge.sports.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.guge.sports.entity.Dto.DeptRunDetailDto;
import com.guge.sports.entity.Dto.RunningDetailsDataDto;
import com.guge.sports.entity.RunSum;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guge.sports.entity.Dto.StudentRunningDataDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-09-14
 */
public interface RunSumMapper extends BaseMapper<RunSum> {

    // 获取学院跑步信息
    DeptRunDetailDto getDeptRunDetail(@Param("deptId") Long deptId,@Param("deptRunDetailDto") DeptRunDetailDto deptRunDetailDto);

    /*
    *
    *  跑步管理 学生数据  Page 分页 数据  StudentRunningDataVo 条件查询
    * */
    Page<StudentRunningDataDto> StudentRunningDataList(@Param("page") Page<StudentRunningDataDto> page, @Param("StudentRunningDataDto") StudentRunningDataDto studentRunningDataDto);

    /*
    *
    * 跑步明细 Page 分页 时间  RunningDetailsDataDto 条件查询
    * */


    Page<RunningDetailsDataDto> RunningDetailsDataList(@Param("page") Page<RunningDetailsDataDto> page, @Param("RunningDetailsDataDto") RunningDetailsDataDto runningDetailsDataDto);
}
